package com.online.teaching.module.common.blog.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName : CommentAddDTO  //类名
 * @Description :   //描述
 * @Author : YG  //作者
 * @Date: 2020-11-04 20:25  //时间
 */
@Data
public class CommentAddDTO {

    @ApiModelProperty(value = "属于哪个博客",required = false)
    private Integer blogId;

    @ApiModelProperty(value = "如果为0的话就表示其评论博客，其它值表示其回复的评论的id",required = false)
    private Integer replyId;

    @ApiModelProperty(value = "回复的那一条评论或者博客的作者的名称,如果为直接评论博客则为空")
    private String replyPublishName;

    @ApiModelProperty(value = "标题")
    @NotNull(message = "请输入正确的评论标题")
    private String commentTitle;

    @ApiModelProperty(value = "评论内容")
    @NotNull(message = "请输入正确的评论内容")
    private String commentContent;

}
